<?php

class Application_Model_GridBox
{
    public $account;
    public $feed_entry;
    public $left;
    public $top;
    public $width;
    public $height;
    public $isRead;

    public static function fromTableRow($gridBox)
    {
        $result = new Application_Model_GridBox();
        $result->left = $gridBox['left'];
        $result->top = $gridBox['top'];
        $result->width = $gridBox['width'];
        $result->height = $gridBox['height'];
        $result->isRead = $gridBox['isRead'];
        return $result;
    }

    public function __destruct()
    {
        unset($this->account);
        unset($this->feed_entry);
        unset($this->left);
        unset($this->right);
        unset($this->width);
        unset($this->height);
        unset($this->isRead);
    }
}

